home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4231 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  728 b 

  1. Path: alterdial.uu.net!not-for-mail
  2. From: rogerst@approach.com (Tom Rogers)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to tell if a file exists in C
  5. Date: Fri, 02 Feb 1996 22:38:45 GMT
  6. Message-ID: <4etpa5$f3o@alterdial.UU.NET>
  7. References: <4eqkj6$ipo@charm.magnus.acs.ohio-state.edu>
  8. NNTP-Posting-Host: 198.177.211.46
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. xiaoyi@bmecg.bme.ohio-state.edu (Xiaoyi Wu) wrote:
  12.  
  13. >Hi, how do I find out if a file already exists
  14. >in UNIX C? On PCs I would do a findfirst/findnext,
  15. >is there an equivalent on Unix?
  16.  
  17. >Answer CCed to my email appreciated. Thanks.
  18.  
  19. >Xiaoyi
  20.  
  21. Check out IO.H, which should be ported to most systems.  It includes
  22. the access() function which does what you want.
  23.  
  24. Tom Rogers
  25.  
  26.  
  27.